import request from '@/utils/request'

// 创建问题描述
export function createQuestionConfig(data) {
  return request({
    url: '/system/question-config/create',
    method: 'post',
    data: data
  })
}

// 更新问题描述
export function updateQuestionConfig(data) {
  return request({
    url: '/system/question-config/update',
    method: 'put',
    data: data
  })
}

// 删除问题描述
export function deleteQuestionConfig(id) {
  return request({
    url: '/system/question-config/delete?id=' + id,
    method: 'delete'
  })
}

// 获得问题描述
export function getQuestionConfig(id) {
  return request({
    url: '/system/question-config/get?id=' + id,
    method: 'get'
  })
}

// 获得问题描述分页
export function getQuestionConfigPage(params) {
  return request({
    url: '/system/question-config/page',
    method: 'get',
    params
  })
}
// 导出问题描述 Excel
export function exportQuestionConfigExcel(params) {
  return request({
    url: '/system/question-config/export-excel',
    method: 'get',
    params,
    // responseType: 'blob'
  })
}